
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon component icon-dotWithFrame"></i>
                    <div class="name">点-带框</div>
                    <div class="fontclass">.icon-dotWithFrame</div>
                </li>
            
                <li>
                <i class="icon component icon-dot"></i>
                    <div class="name">点</div>
                    <div class="fontclass">.icon-dot</div>
                </li>
            
                <li>
                <i class="icon component icon-help"></i>
                    <div class="name">帮助</div>
                    <div class="fontclass">.icon-help</div>
                </li>
            
                <li>
                <i class="icon component icon-edit"></i>
                    <div class="name">编辑</div>
                    <div class="fontclass">.icon-edit</div>
                </li>
            
                <li>
                <i class="icon component icon-pieChart"></i>
                    <div class="name">饼图</div>
                    <div class="fontclass">.icon-pieChart</div>
                </li>
            
                <li>
                <i class="icon component icon-dot-line"></i>
                    <div class="name">点-横</div>
                    <div class="fontclass">.icon-dot-line</div>
                </li>
            
                <li>
                <i class="icon component icon-email"></i>
                    <div class="name">电子邮件e</div>
                    <div class="fontclass">.icon-email</div>
                </li>
            
                <li>
                <i class="icon component icon-card"></i>
                    <div class="name">个人卡片</div>
                    <div class="fontclass">.icon-card</div>
                </li>
            
                <li>
                <i class="icon component icon-close"></i>
                    <div class="name">关闭</div>
                    <div class="fontclass">.icon-close</div>
                </li>
            
                <li>
                <i class="icon component icon-correct"></i>
                    <div class="name">勾</div>
                    <div class="fontclass">.icon-correct</div>
                </li>
            
                <li>
                <i class="icon component icon-close2"></i>
                    <div class="name">关闭02</div>
                    <div class="fontclass">.icon-close2</div>
                </li>
            
                <li>
                <i class="icon component icon-correct2"></i>
                    <div class="name">勾2</div>
                    <div class="fontclass">.icon-correct2</div>
                </li>
            
                <li>
                <i class="icon component icon-add"></i>
                    <div class="name">加</div>
                    <div class="fontclass">.icon-add</div>
                </li>
            
                <li>
                <i class="icon component icon-add2"></i>
                    <div class="name">加2</div>
                    <div class="fontclass">.icon-add2</div>
                </li>
            
                <li>
                <i class="icon component icon-reduce"></i>
                    <div class="name">减</div>
                    <div class="fontclass">.icon-reduce</div>
                </li>
            
                <li>
                <i class="icon component icon-reduce2"></i>
                    <div class="name">减2</div>
                    <div class="fontclass">.icon-reduce2</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow2_right"></i>
                    <div class="name">箭头2-right</div>
                    <div class="fontclass">.icon-arrow2_right</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow2_up"></i>
                    <div class="name">箭头2-up</div>
                    <div class="fontclass">.icon-arrow2_up</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow2_first"></i>
                    <div class="name">箭头2-首页</div>
                    <div class="fontclass">.icon-arrow2_first</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow2_last"></i>
                    <div class="name">箭头2-尾页</div>
                    <div class="fontclass">.icon-arrow2_last</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow2_down"></i>
                    <div class="name">箭头2-down</div>
                    <div class="fontclass">.icon-arrow2_down</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow2_left"></i>
                    <div class="name">箭头2-left</div>
                    <div class="fontclass">.icon-arrow2_left</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow_down"></i>
                    <div class="name">箭头-down</div>
                    <div class="fontclass">.icon-arrow_down</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow_left"></i>
                    <div class="name">箭头-left</div>
                    <div class="fontclass">.icon-arrow_left</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow_right"></i>
                    <div class="name">箭头-right</div>
                    <div class="fontclass">.icon-arrow_right</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow_up"></i>
                    <div class="name">箭头-up</div>
                    <div class="fontclass">.icon-arrow_up</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow_first"></i>
                    <div class="name">箭头-首页</div>
                    <div class="fontclass">.icon-arrow_first</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow_last"></i>
                    <div class="name">箭头-尾页</div>
                    <div class="fontclass">.icon-arrow_last</div>
                </li>
            
                <li>
                <i class="icon component icon-money"></i>
                    <div class="name">金币</div>
                    <div class="fontclass">.icon-money</div>
                </li>
            
                <li>
                <i class="icon component icon-funnel"></i>
                    <div class="name">漏斗</div>
                    <div class="fontclass">.icon-funnel</div>
                </li>
            
                <li>
                <i class="icon component icon-alarm"></i>
                    <div class="name">闹铃</div>
                    <div class="fontclass">.icon-alarm</div>
                </li>
            
                <li>
                <i class="icon component icon-catalog"></i>
                    <div class="name">目录</div>
                    <div class="fontclass">.icon-catalog</div>
                </li>
            
                <li>
                <i class="icon component icon-alarm2"></i>
                    <div class="name">闹铃-线性</div>
                    <div class="fontclass">.icon-alarm2</div>
                </li>
            
                <li>
                <i class="icon component icon-circle"></i>
                    <div class="name">圈</div>
                    <div class="fontclass">.icon-circle</div>
                </li>
            
                <li>
                <i class="icon component icon-person"></i>
                    <div class="name">人员</div>
                    <div class="fontclass">.icon-person</div>
                </li>
            
                <li>
                <i class="icon component icon-date"></i>
                    <div class="name">日期</div>
                    <div class="fontclass">.icon-date</div>
                </li>
            
                <li>
                <i class="icon component icon-date2"></i>
                    <div class="name">日期02</div>
                    <div class="fontclass">.icon-date2</div>
                </li>
            
                <li>
                <i class="icon component icon-delete"></i>
                    <div class="name">删除</div>
                    <div class="fontclass">.icon-delete</div>
                </li>
            
                <li>
                <i class="icon component icon-favorites"></i>
                    <div class="name">收藏</div>
                    <div class="fontclass">.icon-favorites</div>
                </li>
            
                <li>
                <i class="icon component icon-setting"></i>
                    <div class="name">设置</div>
                    <div class="fontclass">.icon-setting</div>
                </li>
            
                <li>
                <i class="icon component icon-dbArrow_down"></i>
                    <div class="name">双箭头-down</div>
                    <div class="fontclass">.icon-dbArrow_down</div>
                </li>
            
                <li>
                <i class="icon component icon-search"></i>
                    <div class="name">搜索</div>
                    <div class="fontclass">.icon-search</div>
                </li>
            
                <li>
                <i class="icon component icon-dbArrow_up"></i>
                    <div class="name">双箭头-top</div>
                    <div class="fontclass">.icon-dbArrow_up</div>
                </li>
            
                <li>
                <i class="icon component icon-lock"></i>
                    <div class="name">锁</div>
                    <div class="fontclass">.icon-lock</div>
                </li>
            
                <li>
                <i class="icon component icon-warn"></i>
                    <div class="name">提醒</div>
                    <div class="fontclass">.icon-warn</div>
                </li>
            
                <li>
                <i class="icon component icon-addTo"></i>
                    <div class="name">添加</div>
                    <div class="fontclass">.icon-addTo</div>
                </li>
            
                <li>
                <i class="icon component icon-addDoc"></i>
                    <div class="name">添加文档</div>
                    <div class="fontclass">.icon-addDoc</div>
                </li>
            
                <li>
                <i class="icon component icon-notice"></i>
                    <div class="name">通告</div>
                    <div class="fontclass">.icon-notice</div>
                </li>
            
                <li>
                <i class="icon component icon-text"></i>
                    <div class="name">文本</div>
                    <div class="fontclass">.icon-text</div>
                </li>
            
                <li>
                <i class="icon component icon-headPortrait"></i>
                    <div class="name">头像</div>
                    <div class="fontclass">.icon-headPortrait</div>
                </li>
            
                <li>
                <i class="icon component icon-text3"></i>
                    <div class="name">文本3</div>
                    <div class="fontclass">.icon-text3</div>
                </li>
            
                <li>
                <i class="icon component icon-text2"></i>
                    <div class="name">文本2</div>
                    <div class="fontclass">.icon-text2</div>
                </li>
            
                <li>
                <i class="icon component icon-message"></i>
                    <div class="name">消息</div>
                    <div class="fontclass">.icon-message</div>
                </li>
            
                <li>
                <i class="icon component icon-folder"></i>
                    <div class="name">文件夹</div>
                    <div class="fontclass">.icon-folder</div>
                </li>
            
                <li>
                <i class="icon component icon-package"></i>
                    <div class="name">文件包</div>
                    <div class="fontclass">.icon-package</div>
                </li>
            
                <li>
                <i class="icon component icon-show"></i>
                    <div class="name">显示</div>
                    <div class="fontclass">.icon-show</div>
                </li>
            
                <li>
                <i class="icon component icon-letter"></i>
                    <div class="name">信封</div>
                    <div class="fontclass">.icon-letter</div>
                </li>
            
                <li>
                <i class="icon component icon-selectText"></i>
                    <div class="name">选择文本</div>
                    <div class="fontclass">.icon-selectText</div>
                </li>
            
                <li>
                <i class="icon component icon-maximization"></i>
                    <div class="name">最大化</div>
                    <div class="fontclass">.icon-maximization</div>
                </li>
            
                <li>
                <i class="icon component icon-hide"></i>
                    <div class="name">隐藏</div>
                    <div class="fontclass">.icon-hide</div>
                </li>
            
                <li>
                <i class="icon component icon-minimize"></i>
                    <div class="name">最小化</div>
                    <div class="fontclass">.icon-minimize</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow3_left"></i>
                    <div class="name">箭头3-left </div>
                    <div class="fontclass">.icon-arrow3_left</div>
                </li>
            
                <li>
                <i class="icon component icon-arrow3_right"></i>
                    <div class="name">箭头3-right </div>
                    <div class="fontclass">.icon-arrow3_right</div>
                </li>
            
                <li>
                <i class="icon component icon-collected"></i>
                    <div class="name">已收藏</div>
                    <div class="fontclass">.icon-collected</div>
                </li>
            
                <li>
                <i class="icon component icon-excel"></i>
                    <div class="name">excel</div>
                    <div class="fontclass">.icon-excel</div>
                </li>
            
                <li>
                <i class="icon component icon-export"></i>
                    <div class="name">导出</div>
                    <div class="fontclass">.icon-export</div>
                </li>
            
                <li>
                <i class="icon component icon-gridmin"></i>
                    <div class="name">表格最小化</div>
                    <div class="fontclass">.icon-gridmin</div>
                </li>
            
                <li>
                <i class="icon component icon-gridmax"></i>
                    <div class="name">表格最大化</div>
                    <div class="fontclass">.icon-gridmax</div>
                </li>
            
                <li>
                <i class="icon component icon-refresh"></i>
                    <div class="name">刷新</div>
                    <div class="fontclass">.icon-refresh</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">component</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"component"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
